Skip to content

Docs: Make examples more realistic#617

Merged
dcastil merged 2 commits intomainfrom
docs/260/make-examples-more-realistic
Oct 26, 2025
Merged

Docs: Make examples more realistic#617
dcastil merged 2 commits intomainfrom
docs/260/make-examples-more-realistic

Conversation

@dcastil
Copy link
Owner

@dcastil dcastil commented Oct 26, 2025

Closes #260

@github-actions github-actions bot added documentation Improvements or additions to documentation context-v3 Related to tailwind-merge v3 labels Oct 26, 2025
@github-actions
Copy link

Metrics report

At head commit 31c1951 and base commit 0049da3 at 2025-10-26T20:10:41.538Z

Size

No changes

All size metrics
Export Size original Size minified Size minified and Brotli compressed
tailwind-merge esm 91.17 kB 0% 25.37 kB 0% 6.68 kB 0%
 › createTailwindMerge 13.42 kB 0% 3.62 kB 0% 1.45 kB 0%
 › extendTailwindMerge 90.46 kB 0% 24.74 kB 0% 6.48 kB 0%
 › fromTheme 0.16 kB 0% 0.08 kB 0% 0.09 kB 0%
 › getDefaultConfig 74.70 kB 0% 20.24 kB 0% 4.89 kB 0%
 › mergeConfigs 2.12 kB 0% 0.80 kB 0% 0.27 kB 0%
 › twJoin 1.06 kB 0% 0.26 kB 0% 0.16 kB 0%
 › twMerge 88.15 kB 0% 23.89 kB 0% 6.25 kB 0%
 › validators 4.44 kB 0% 1.69 kB 0% 0.73 kB 0%
tailwind-merge cjs 91.43 kB 0% 31.25 kB 0% 7.07 kB 0%
tailwind-merge/es5 esm 96.57 kB 0% 27.34 kB 0% 6.90 kB 0%
 › createTailwindMerge 15.27 kB 0% 4.20 kB 0% 1.56 kB 0%
 › extendTailwindMerge 95.47 kB 0% 26.71 kB 0% 6.70 kB 0%
 › fromTheme 0.21 kB 0% 0.10 kB 0% 0.09 kB 0%
 › getDefaultConfig 77.26 kB 0% 21.40 kB 0% 4.98 kB 0%
 › mergeConfigs 2.46 kB 0% 0.87 kB 0% 0.29 kB 0%
 › twJoin 1.08 kB 0% 0.26 kB 0% 0.14 kB 0%
 › twMerge 92.56 kB 0% 25.64 kB 0% 6.47 kB 0%
 › validators 6.04 kB 0% 2.23 kB 0% 0.76 kB 0%
tailwind-merge/es5 cjs 96.82 kB 0% 33.25 kB 0% 7.24 kB 0%

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 26, 2025

CodSpeed Performance Report

Merging #617 will not alter performance

Comparing docs/260/make-examples-more-realistic (31c1951) with main (0049da3)

Summary

✅ 5 untouched

@dcastil dcastil merged commit 9f6317d into main Oct 26, 2025
7 checks passed
@dcastil dcastil deleted the docs/260/make-examples-more-realistic branch October 26, 2025 20:11
@github-actions
Copy link

github-actions bot commented Nov 9, 2025

This was addressed in release v3.4.0.

Repository owner deleted a comment from github-actions bot Feb 15, 2026
alessio added a commit to layer-3/nitrolite that referenced this pull request Mar 16, 2026
![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)


<h3>Snyk has created this PR to upgrade tailwind-merge from 3.4.0 to
3.4.1.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>


- The recommended version is **7 versions** ahead of your current
version.

- The recommended version was released **22 days ago**.



<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>tailwind-merge</b></summary>
    <ul>
      <li>
<b>3.4.1</b> - <a
href="https://redirect.github.com/dcastil/tailwind-merge/releases/tag/v3.4.1">2026-02-15</a></br><h3>Bug
Fixes</h3>
<ul>
<li>Prevent arbitrary font-family and font-weight from merging by <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/roneymoon/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/roneymoon">@ roneymoon</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="3859932231" data-permission-text="Title is private"
data-url="dcastil/tailwind-merge#635"
data-hovercard-type="pull_request"
data-hovercard-url="/dcastil/tailwind-merge/pull/635/hovercard"
href="https://redirect.github.com/dcastil/tailwind-merge/pull/635">#635</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a class="commit-link"
href="https://redirect.github.com/dcastil/tailwind-merge/compare/v3.4.0...v3.4.1"><tt>v3.4.0...v3.4.1</tt></a></p>
<p>Thanks to <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/brandonmcconnell/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/brandonmcconnell">@
brandonmcconnell</a>, <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/manavm1990/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/manavm1990">@ manavm1990</a>, <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/langy/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/langy">@ langy</a>, <a
class="user-mention notranslate" data-hovercard-type="organization"
data-hovercard-url="/orgs/roboflow/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/roboflow">@ roboflow</a>, <a
class="user-mention notranslate" data-hovercard-type="organization"
data-hovercard-url="/orgs/syntaxfm/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/syntaxfm">@ syntaxfm</a>, <a
class="user-mention notranslate" data-hovercard-type="organization"
data-hovercard-url="/orgs/getsentry/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/getsentry">@ getsentry</a>, <a
class="user-mention notranslate" data-hovercard-type="organization"
data-hovercard-url="/orgs/codecov/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/codecov">@ codecov</a>, a private
sponsor, <a class="user-mention notranslate"
data-hovercard-type="organization"
data-hovercard-url="/orgs/block/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/block">@ block</a>, <a
class="user-mention notranslate" data-hovercard-type="organization"
data-hovercard-url="/orgs/openclaw/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/openclaw">@ openclaw</a>, <a
class="user-mention notranslate" data-hovercard-type="organization"
data-hovercard-url="/orgs/sourcegraph/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/sourcegraph">@ sourcegraph</a> and
more via <a class="user-mention notranslate"
data-hovercard-type="organization"
data-hovercard-url="/orgs/thnxdev/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/thnxdev">@ thnxdev</a> for sponsoring
tailwind-merge! ❤️</p>
      </li>
      <li>
<b>3.4.1-dev.d2bbc293406dc65ef26eb2b0dc75ff69c765039b</b> - 2026-02-15
      </li>
      <li>
<b>3.4.1-dev.bb32e1c31b971ead8b49750a167b996eb0480649</b> - 2026-02-15
      </li>
      <li>
<b>3.4.1-dev.a363aa43401a35e2ebd26df401bfd286f854f6ec</b> - 2026-02-15
      </li>
      <li>
<b>3.4.1-dev.6c1f77ca717df7d2685eb783c568ef7696148171</b> - 2026-02-18
      </li>
      <li>
<b>3.4.1-dev.60634fdace8a9efd7af290e0382cefa81c00f8cf</b> - 2026-02-15
      </li>
      <li>
<b>3.4.1-dev.02b6eb6df78e6fb7994b43d4b5f4bbecbe05c43a</b> - 2026-02-15
      </li>
      <li>
<b>3.4.0</b> - <a
href="https://redirect.github.com/dcastil/tailwind-merge/releases/tag/v3.4.0">2025-11-09</a></br><h3>New
Features</h3>
<ul>
<li>Performance optimizations which make tailwind-merge &gt;10% faster
<ul>
<li>Vibe optimization by <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/quantizor/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/quantizor">@ quantizor</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="2923243792" data-permission-text="Title is private"
data-url="dcastil/tailwind-merge#547"
data-hovercard-type="pull_request"
data-hovercard-url="/dcastil/tailwind-merge/pull/547/hovercard"
href="https://redirect.github.com/dcastil/tailwind-merge/pull/547">#547</a></li>
<li>Additional optimizations by <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/quantizor/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/quantizor">@ quantizor</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="3567413691" data-permission-text="Title is private"
data-url="dcastil/tailwind-merge#619"
data-hovercard-type="pull_request"
data-hovercard-url="/dcastil/tailwind-merge/pull/619/hovercard"
href="https://redirect.github.com/dcastil/tailwind-merge/pull/619">#619</a></li>
</ul>
</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>Improve docs by clarifying things, adding more examples by <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/dcastil/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/dcastil">@ dcastil</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="3554414538" data-permission-text="Title is private"
data-url="dcastil/tailwind-merge#618"
data-hovercard-type="pull_request"
data-hovercard-url="/dcastil/tailwind-merge/pull/618/hovercard"
href="https://redirect.github.com/dcastil/tailwind-merge/pull/618">#618</a></li>
<li>Make examples more realistic by <a class="user-mention notranslate"
data-hovercard-type="user" data-hovercard-url="/users/dcastil/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/dcastil">@ dcastil</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="3554404528" data-permission-text="Title is private"
data-url="dcastil/tailwind-merge#617"
data-hovercard-type="pull_request"
data-hovercard-url="/dcastil/tailwind-merge/pull/617/hovercard"
href="https://redirect.github.com/dcastil/tailwind-merge/pull/617">#617</a></li>
<li>Add custom variant as an alternative to docs by <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/kidonng/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/kidonng">@ kidonng</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="3152183374" data-permission-text="Title is private"
data-url="dcastil/tailwind-merge#592"
data-hovercard-type="pull_request"
data-hovercard-url="/dcastil/tailwind-merge/pull/592/hovercard"
href="https://redirect.github.com/dcastil/tailwind-merge/pull/592">#592</a></li>
</ul>
<h3>Other</h3>
<ul>
<li>Improve benchmarking suite by <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/quantizor/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/quantizor">@ quantizor</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="3567535310" data-permission-text="Title is private"
data-url="dcastil/tailwind-merge#620"
data-hovercard-type="pull_request"
data-hovercard-url="/dcastil/tailwind-merge/pull/620/hovercard"
href="https://redirect.github.com/dcastil/tailwind-merge/pull/620">#620</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a class="commit-link"
href="https://redirect.github.com/dcastil/tailwind-merge/compare/v3.3.1...v3.4.0"><tt>v3.3.1...v3.4.0</tt></a></p>
<p>Thanks to <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/brandonmcconnell/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/brandonmcconnell">@
brandonmcconnell</a>, <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/manavm1990/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/manavm1990">@ manavm1990</a>, <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/langy/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/langy">@ langy</a>, <a
class="user-mention notranslate" data-hovercard-type="organization"
data-hovercard-url="/orgs/roboflow/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/roboflow">@ roboflow</a>, <a
class="user-mention notranslate" data-hovercard-type="organization"
data-hovercard-url="/orgs/syntaxfm/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/syntaxfm">@ syntaxfm</a>, <a
class="user-mention notranslate" data-hovercard-type="organization"
data-hovercard-url="/orgs/getsentry/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/getsentry">@ getsentry</a>, <a
class="user-mention notranslate" data-hovercard-type="organization"
data-hovercard-url="/orgs/codecov/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://redirect.github.com/codecov">@ codecov</a> and a private
sponsor for sponsoring tailwind-merge! ❤️</p>
      </li>
    </ul>
from <a
href="https://redirect.github.com/dcastil/tailwind-merge/releases">tailwind-merge
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6ImZha2Uta2V5IiwiYW5vbnltb3VzSWQiOiI0ZjI5Y2Q1My05NDFlLTRlZTktOTY4OC0xMDgxMzYxMmY3OTQiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjRmMjljZDUzLTk0MWUtNGVlOS05Njg4LTEwODEzNjEyZjc5NCJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.eu.snyk.io/org/layer-3-foundation-default/project/6ec96c13-2fa1-4d2e-a2c9-55875479edaf?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR
settings](https://app.eu.snyk.io/org/layer-3-foundation-default/project/6ec96c13-2fa1-4d2e-a2c9-55875479edaf/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.eu.snyk.io/org/layer-3-foundation-default/project/6ec96c13-2fa1-4d2e-a2c9-55875479edaf/settings/integration?pkg&#x3D;tailwind-merge&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"breakingChangeRiskLevel":null,"FF_showPullRequestBreakingChanges":false,"FF_showPullRequestBreakingChangesWebSearch":false,"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"tailwind-merge","from":"3.4.0","to":"3.4.1"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"4f29cd53-941e-4ee9-9688-10813612f794","prPublicId":"4f29cd53-941e-4ee9-9688-10813612f794","packageManager":"npm","priorityScoreList":[],"projectPublicId":"6ec96c13-2fa1-4d2e-a2c9-55875479edaf","projectUrl":"https://app.eu.snyk.io/org/layer-3-foundation-default/project/6ec96c13-2fa1-4d2e-a2c9-55875479edaf?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":7,"publishedDate":"2026-02-15T10:35:13.860Z"},"vulns":[]}'

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Alessio Treglia <229356+alessio@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

context-v3 Related to tailwind-merge v3 documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make examples in docs more realistic

1 participant